<!DOCTYPE html>
<html style="height: 100%">
   <head>
       <meta charset="utf-8">
   </head>
   <body style="height: 100%; margin: 0">
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span>沙箱提交------<a href="index.html">测试</a></span> <br/><br/><br/>
       <script type="text/javascript" src="jquery.js"></script>
       
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;路径<input type="text" style="width: 600px;height:30px;" id="path" value="https://lqpt.chinatax.gov.cn:8443/access/sandbox/v2/invoke/202007/CXNSRJBXX/">
       <div id=""></div>
       &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;报文<textarea rows="20" cols="100" id="code">{"nsrsbh":"911305005809845195"}</textarea>
       <button  onclick="getData();">测试</button>
       <div style="">
       <div style="width: 500px;height: 100px;word-wrap: break-word; height:auto; float:left; padding-left:20px;" id="base"></div>&nbsp;&nbsp;&nbsp;
       <div style="width: 500px;height: 100px;word-wrap: break-word; height:auto; float:left; padding-left:20px;" id="dec"></div>&nbsp;&nbsp;&nbsp;
       <textarea rows="20" cols="100"  id="decode"></textarea>
       </div>
       <script type="text/javascript">
       var dmc=1;
       function getData(){
    	  
    	    var path = $("#path").val();
    	    var code = $("#code").val();
    	    
    	    $.ajax({
    	        type: "post",
    	        url: "jmltest/zhenghi",
    	        data: {
    	            "path": path,
    	            "code": code
    	        },
    	        success: function(r) {
    	        	$("#base").html(r.base);
	            	$("#dec").html(r.dec);
	            	$("#decode").val(r.decode);
    	        }
    	    });
       }
       
      

       </script>
   </body>
</html>